import request from '@/api/request'
/* 获取歌手列表 */
export const getArtistList = ({ limit, offset, type, area, initial }) => request({ url: '/artist/list', params: { limit, offset, type, area, initial }, method: 'get' })
// 获取歌手详情
export const getArtistDesc = (id) => request({ url: '/artist/detail', params: { id }, method: 'get' })
/* 获取歌手热门50首 */
export const getArtistTop = (id) => request({ url: '/artist/top/song', params: { id }, method: 'get' })
/* 获取歌手专辑 */
export const getArtistAlbum = (id, limit = 50, offset = 0) => request({ url: '/artist/album', params: { id, limit, offset }, method: 'get' })
/* 获取专辑内容 */
export const getAlbumDetail = (id) => request({ url: '/album', params: { id }, method: 'get' })
/* 获取专辑动态内容，评论收藏等 */
export const getAlbumDynamic = (id) => request('/album/detail/dynamic', { id, timestamp: Date.now() })
/* 获取歌手MV */
export const getArtistMv = (id) => request({ url: '/artist/mv', params: { id }, method: 'get' })
/* 获取相似歌手 */
export const getArtistSame = (id) => request({ url: '/simi/artist', params: { id }, method: 'get' })
/* 获取歌手描述 */
export const getIntro = (id) => request({ url: '/artist/desc', params: { id }, method: 'get' })
// 新歌速递
export const getTopSong = (type) => request({ url: '/top/song', params: { type }, method: 'get' })
/* 新碟上架 */
//area: ALL:全部,ZH:华语,EA:欧美,KR:韩国,JP:日本
export const getTopAlbum = ({ limit, offset, area }) => request({ url: '/top/album', params: { limit, offset, area }, method: 'get' })